package com.lxl.workbench.entity;

/**
 * 书对应的实体类
 * @author 北上寻海
 */
public class Book {
    private String id;
    private String isbn;
    private String bookName;
    private String typeId;
    private int remaining;
    private String price;
    private String author;
    public String getId() {
        return id;
    }

    public Book(String isbn, String bookName, String typeId, int remaining, String price, String author) {
        this.isbn = isbn;
        this.bookName = bookName;
        this.typeId = typeId;
        this.remaining = remaining;
        this.price = price;
        this.author = author;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public int getRemaining() {
        return remaining;
    }

    public void setRemaining(int remaining) {
        this.remaining = remaining;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id='" + id + '\'' +
                ", isbn='" + isbn + '\'' +
                ", bookName='" + bookName + '\'' +
                ", typeId='" + typeId + '\'' +
                ", remaining=" + remaining +
                ", price=" + price +
                ", author='" + author + '\'' +
                '}';
    }

    public Book() {
    }

    public Book(String id, String isbn, String bookName, String typeId, int remaining, String price, String author) {
        this.id = id;
        this.isbn = isbn;
        this.bookName = bookName;
        this.typeId = typeId;
        this.remaining = remaining;
        this.price = price;
        this.author = author;
    }
}
